<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.14"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>SPHinXsys: SPHINXsys/src/shared/network/network.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="logo.png"/></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">SPHinXsys
   &#160;<span id="projectnumber">alpha version</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.14 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_3dc1dabd28ba78e072d14d3fcfc90454.html">SPHINXsys</a></li><li class="navelem"><a class="el" href="dir_48ea983704c43b6d88c1fa3f4d09e369.html">src</a></li><li class="navelem"><a class="el" href="dir_0a0d9ef1793521534f0094f317758287.html">shared</a></li><li class="navelem"><a class="el" href="dir_0b0b29784d568c2e768be42fb24e099b.html">network</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="headertitle">
<div class="title">network.h</div>  </div>
</div><!--header-->
<div class="contents">
<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="comment">/* -------------------------------------------------------------------------*</span></div><div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<span class="comment">*                               SPHinXsys                                   *</span></div><div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;<span class="comment">* --------------------------------------------------------------------------*</span></div><div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="comment">* SPHinXsys (pronunciation: s&#39;finksis) is an acronym from Smoothed Particle *</span></div><div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<span class="comment">* Hydrodynamics for industrial compleX systems. It provides C++ APIs for    *</span></div><div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;<span class="comment">* physical accurate simulation and aims to model coupled industrial dynamic *</span></div><div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;<span class="comment">* systems including fluid, solid, multi-body dynamics and beyond with SPH   *</span></div><div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;<span class="comment">* (smoothed particle hydrodynamics), a meshless computational method using  *</span></div><div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;<span class="comment">* particle discretization.                                                  *</span></div><div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;<span class="comment">*                                                                           *</span></div><div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;<span class="comment">* SPHinXsys is partially funded by German Research Foundation               *</span></div><div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;<span class="comment">* (Deutsche Forschungsgemeinschaft) DFG HU1527/6-1, HU1527/10-1             *</span></div><div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;<span class="comment">* and HU1527/12-1.                                                          *</span></div><div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;<span class="comment">*                                                                           *</span></div><div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;<span class="comment">* Portions copyright (c) 2017-2020 Technical University of Munich and       *</span></div><div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;<span class="comment">* the authors&#39; affiliations.                                                *</span></div><div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;<span class="comment">*                                                                           *</span></div><div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160;<span class="comment">* Licensed under the Apache License, Version 2.0 (the &quot;License&quot;); you may   *</span></div><div class="line"><a name="l00019"></a><span class="lineno">   19</span>&#160;<span class="comment">* not use this file except in compliance with the License. You may obtain a *</span></div><div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;<span class="comment">* copy of the License at http://www.apache.org/licenses/LICENSE-2.0.        *</span></div><div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;<span class="comment">*                                                                           *</span></div><div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160;<span class="comment">* --------------------------------------------------------------------------*/</span></div><div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160;<span class="preprocessor">#pragma once</span></div><div class="line"><a name="l00030"></a><span class="lineno">   30</span>&#160;<span class="preprocessor">#define _SILENCE_EXPERIMENTAL_FILESYSTEM_DEPRECATION_WARNING</span></div><div class="line"><a name="l00031"></a><span class="lineno">   31</span>&#160;</div><div class="line"><a name="l00032"></a><span class="lineno">   32</span>&#160;<span class="preprocessor">#include &lt;algorithm&gt;</span></div><div class="line"><a name="l00033"></a><span class="lineno">   33</span>&#160;<span class="preprocessor">#include &lt;vector&gt;</span></div><div class="line"><a name="l00034"></a><span class="lineno">   34</span>&#160;<span class="preprocessor">#include &lt;iterator&gt;</span></div><div class="line"><a name="l00035"></a><span class="lineno">   35</span>&#160;</div><div class="line"><a name="l00036"></a><span class="lineno">   36</span>&#160;<span class="preprocessor">#include &quot;base_data_package.h&quot;</span></div><div class="line"><a name="l00037"></a><span class="lineno">   37</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="sph__data__conainers_8h.html">sph_data_conainers.h</a>&quot;</span></div><div class="line"><a name="l00038"></a><span class="lineno">   38</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="all__types__of__bodies_8h.html">all_types_of_bodies.h</a>&quot;</span></div><div class="line"><a name="l00039"></a><span class="lineno">   39</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="all__meshes_8h.html">all_meshes.h</a>&quot;</span></div><div class="line"><a name="l00041"></a><span class="lineno">   41</span>&#160;<span class="preprocessor">#ifdef __APPLE__</span></div><div class="line"><a name="l00042"></a><span class="lineno">   42</span>&#160;<span class="preprocessor">#include &lt;boost/filesystem.hpp&gt;</span></div><div class="line"><a name="l00043"></a><span class="lineno">   43</span>&#160;<span class="keyword">namespace </span>fs = boost::filesystem;</div><div class="line"><a name="l00044"></a><span class="lineno">   44</span>&#160;<span class="preprocessor">#else</span></div><div class="line"><a name="l00045"></a><span class="lineno">   45</span>&#160;<span class="preprocessor">#include &lt;experimental/filesystem&gt;</span></div><div class="line"><a name="l00046"></a><span class="lineno">   46</span>&#160;<span class="keyword">namespace </span>fs = std::experimental::filesystem;</div><div class="line"><a name="l00047"></a><span class="lineno">   47</span>&#160;<span class="preprocessor">#endif</span></div><div class="line"><a name="l00048"></a><span class="lineno">   48</span>&#160;<span class="preprocessor">#include &lt;fstream&gt;</span></div><div class="line"><a name="l00049"></a><span class="lineno">   49</span>&#160;<span class="preprocessor">#include &lt;random&gt;</span></div><div class="line"><a name="l00050"></a><span class="lineno">   50</span>&#160;<span class="keyword">using namespace </span><a class="code" href="namespacestd.html">std</a>;</div><div class="line"><a name="l00051"></a><span class="lineno">   51</span>&#160;</div><div class="line"><a name="l00052"></a><span class="lineno">   52</span>&#160;<span class="keyword">namespace </span><a class="code" href="namespace_s_p_h.html">SPH</a> </div><div class="line"><a name="l00053"></a><span class="lineno">   53</span>&#160;{</div><div class="line"><a name="l00054"></a><span class="lineno">   54</span>&#160;    <span class="keyword">class </span>KDTree;</div><div class="line"><a name="l00055"></a><span class="lineno">   55</span>&#160;    <span class="keyword">class </span>BaseLevelSet;</div><div class="line"><a name="l00056"></a><span class="lineno">   56</span>&#160;    </div><div class="line"><a name="l00057"></a><span class="lineno">   57</span>&#160;    <span class="keyword">using</span> pointIndex = <span class="keyword">typename</span> std::pair&lt;Point, size_t&gt;;</div><div class="line"><a name="l00058"></a><span class="lineno">   58</span>&#160;</div><div class="line"><a name="l00059"></a><span class="lineno"><a class="line" href="class_s_p_h_1_1_int_comparer.html">   59</a></span>&#160;    <span class="keyword">class </span><a class="code" href="class_s_p_h_1_1_int_comparer.html">IntComparer</a> </div><div class="line"><a name="l00060"></a><span class="lineno">   60</span>&#160;    {</div><div class="line"><a name="l00061"></a><span class="lineno">   61</span>&#160;    <span class="keyword">public</span>:</div><div class="line"><a name="l00062"></a><span class="lineno">   62</span>&#160;        <a class="code" href="class_s_p_h_1_1_int_comparer.html">IntComparer</a>(){}</div><div class="line"><a name="l00063"></a><span class="lineno">   63</span>&#160;        ~<a class="code" href="class_s_p_h_1_1_int_comparer.html">IntComparer</a>(){}</div><div class="line"><a name="l00064"></a><span class="lineno">   64</span>&#160;        <span class="keywordtype">bool</span> operator() (<span class="keywordtype">int</span> i,<span class="keywordtype">int</span> j) { <span class="keywordflow">return</span> (i&lt;j);}</div><div class="line"><a name="l00065"></a><span class="lineno">   65</span>&#160;    };</div><div class="line"><a name="l00070"></a><span class="lineno"><a class="line" href="class_s_p_h_1_1_node.html">   70</a></span>&#160;    <span class="keyword">class </span><a class="code" href="class_s_p_h_1_1_node.html">Node</a></div><div class="line"><a name="l00071"></a><span class="lineno">   71</span>&#160;    {</div><div class="line"><a name="l00072"></a><span class="lineno">   72</span>&#160;    <span class="keyword">protected</span>:</div><div class="line"><a name="l00073"></a><span class="lineno">   73</span>&#160;            </div><div class="line"><a name="l00074"></a><span class="lineno">   74</span>&#160;    <span class="keyword">public</span>:</div><div class="line"><a name="l00076"></a><span class="lineno">   76</span>&#160;        <a class="code" href="class_s_p_h_1_1_node.html">Node</a>(Point init_node);</div><div class="line"><a name="l00077"></a><span class="lineno"><a class="line" href="class_s_p_h_1_1_node.html#a18579b570d4f163829098c655350994b">   77</a></span>&#160;        ~<a class="code" href="class_s_p_h_1_1_node.html">Node</a>(){};</div><div class="line"><a name="l00079"></a><span class="lineno">   79</span>&#160;        std::vector&lt;Point&gt; nodes_;  </div><div class="line"><a name="l00080"></a><span class="lineno"><a class="line" href="class_s_p_h_1_1_node.html#abe8bf9d8d414f5896e58b1cb52fbdf42">   80</a></span>&#160;        std::vector&lt;int&gt; <a class="code" href="class_s_p_h_1_1_node.html#abe8bf9d8d414f5896e58b1cb52fbdf42">nodes_idx_</a>; </div><div class="line"><a name="l00081"></a><span class="lineno"><a class="line" href="class_s_p_h_1_1_node.html#aa6ee05ea3705bc945c4130229eeea9bc">   81</a></span>&#160;        <span class="keywordtype">int</span> <a class="code" href="class_s_p_h_1_1_node.html#aa6ee05ea3705bc945c4130229eeea9bc">last_node_</a>;             </div><div class="line"><a name="l00082"></a><span class="lineno"><a class="line" href="class_s_p_h_1_1_node.html#ace46ca6baedae3f8df436e5606c20caf">   82</a></span>&#160;        <a class="code" href="namespace_s_p_h.html#abae56fd7f25f13487c7943ce4681d0ce">IndexVector</a> <a class="code" href="class_s_p_h_1_1_node.html#ace46ca6baedae3f8df436e5606c20caf">end_nodes_</a>;     </div><div class="line"><a name="l00083"></a><span class="lineno"><a class="line" href="class_s_p_h_1_1_node.html#aa7f2629949b9f07a0954146466ca782b">   83</a></span>&#160;        <a class="code" href="class_s_p_h_1_1_k_d_tree.html">KDTree</a>* <a class="code" href="class_s_p_h_1_1_node.html#aa7f2629949b9f07a0954146466ca782b">kd_tree_</a>;           </div><div class="line"><a name="l00085"></a><span class="lineno">   85</span>&#160;        <a class="code" href="class_s_p_h_1_1_k_d_tree.html">KDTree</a>* collision_kd_tree_;</div><div class="line"><a name="l00086"></a><span class="lineno"><a class="line" href="class_s_p_h_1_1_node.html#acea90d0decbe568165aa5b885d33e1eb">   86</a></span>&#160;        <a class="code" href="class_s_p_h_1_1_int_comparer.html">IntComparer</a> <a class="code" href="class_s_p_h_1_1_node.html#acea90d0decbe568165aa5b885d33e1eb">comparer_</a>;          </div><div class="line"><a name="l00093"></a><span class="lineno">   93</span>&#160;        std::vector&lt;int&gt; addNode(std::vector&lt;Point&gt;&amp; pts);</div><div class="line"><a name="l00099"></a><span class="lineno">   99</span>&#160;        Real getDistanceFromPoint(Point pt);</div><div class="line"><a name="l00105"></a><span class="lineno">  105</span>&#160;        Real getDistanceFromNode(<span class="keywordtype">int</span> node_idx);</div><div class="line"><a name="l00111"></a><span class="lineno">  111</span>&#160;        <span class="keywordtype">void</span> updateCollisionTree(std::vector&lt;int&gt;&amp; exclude_nodes);</div><div class="line"><a name="l00117"></a><span class="lineno">  117</span>&#160;        Real checkCollitionOnKDTree(Point pnt);</div><div class="line"><a name="l00124"></a><span class="lineno">  124</span>&#160;        pointIndex getCollisionNode(Point pnt);</div><div class="line"><a name="l00131"></a><span class="lineno">  131</span>&#160;        Vecd getGradient(Point pt, Real delta);</div><div class="line"><a name="l00132"></a><span class="lineno">  132</span>&#160;    };</div><div class="line"><a name="l00137"></a><span class="lineno"><a class="line" href="class_s_p_h_1_1_branch.html">  137</a></span>&#160;    <span class="keyword">class </span><a class="code" href="class_s_p_h_1_1_branch.html">Branch</a></div><div class="line"><a name="l00138"></a><span class="lineno">  138</span>&#160;    {</div><div class="line"><a name="l00139"></a><span class="lineno">  139</span>&#160;    <span class="keyword">protected</span>:</div><div class="line"><a name="l00140"></a><span class="lineno">  140</span>&#160;        <a class="code" href="class_s_p_h_1_1_s_p_h_body.html">SPHBody</a>* body_;</div><div class="line"><a name="l00141"></a><span class="lineno">  141</span>&#160;        <a class="code" href="class_s_p_h_1_1_base_level_set.html">BaseLevelSet</a>* levelset_mesh_;</div><div class="line"><a name="l00142"></a><span class="lineno">  142</span>&#160;    <span class="keyword">public</span>:</div><div class="line"><a name="l00143"></a><span class="lineno">  143</span>&#160;        <a class="code" href="class_s_p_h_1_1_branch.html">Branch</a>(<a class="code" href="class_s_p_h_1_1_s_p_h_body.html">SPHBody</a>* body,       </div><div class="line"><a name="l00144"></a><span class="lineno">  144</span>&#160;                <span class="keywordtype">int</span> parent_id,      </div><div class="line"><a name="l00145"></a><span class="lineno">  145</span>&#160;                <span class="keywordtype">int</span> init_node_idx,  </div><div class="line"><a name="l00146"></a><span class="lineno">  146</span>&#160;                Vecd init_dir,      </div><div class="line"><a name="l00147"></a><span class="lineno">  147</span>&#160;                Real l,             </div><div class="line"><a name="l00148"></a><span class="lineno">  148</span>&#160;                Real angle,         </div><div class="line"><a name="l00149"></a><span class="lineno">  149</span>&#160;                Real w,             </div><div class="line"><a name="l00150"></a><span class="lineno">  150</span>&#160;                <a class="code" href="class_s_p_h_1_1_node.html">Node</a>* node,         </div><div class="line"><a name="l00151"></a><span class="lineno">  151</span>&#160;                std::vector&lt;int&gt; &amp;family_nodes_idx, </div><div class="line"><a name="l00152"></a><span class="lineno">  152</span>&#160;                <span class="keywordtype">int</span> n_segments      </div><div class="line"><a name="l00153"></a><span class="lineno">  153</span>&#160;        );</div><div class="line"><a name="l00154"></a><span class="lineno"><a class="line" href="class_s_p_h_1_1_branch.html#aa1a0f16b34a6b9a1bed32e2dff66e0e4">  154</a></span>&#160;        <span class="keyword">virtual</span> ~<a class="code" href="class_s_p_h_1_1_branch.html">Branch</a>() {};</div><div class="line"><a name="l00155"></a><span class="lineno">  155</span>&#160;</div><div class="line"><a name="l00156"></a><span class="lineno">  156</span>&#160;        std::vector&lt;int&gt; child_branchs_;    </div><div class="line"><a name="l00157"></a><span class="lineno"><a class="line" href="class_s_p_h_1_1_branch.html#a79fc50611d5ff8c362184f8410f32455">  157</a></span>&#160;        <span class="keywordtype">int</span> <a class="code" href="class_s_p_h_1_1_branch.html#a79fc50611d5ff8c362184f8410f32455">parent_branch_</a>;                 </div><div class="line"><a name="l00158"></a><span class="lineno"><a class="line" href="class_s_p_h_1_1_branch.html#a7724eb0c597006ad832eeb9b6263b9a6">  158</a></span>&#160;        Vecd <a class="code" href="class_s_p_h_1_1_branch.html#a7724eb0c597006ad832eeb9b6263b9a6">segment_dir_</a>;                  </div><div class="line"><a name="l00159"></a><span class="lineno"><a class="line" href="class_s_p_h_1_1_branch.html#ac0952d5bfac3963929adc077dc446c84">  159</a></span>&#160;        std::vector&lt;int&gt; <a class="code" href="class_s_p_h_1_1_branch.html#ac0952d5bfac3963929adc077dc446c84">node_idxs_</a>;        </div><div class="line"><a name="l00160"></a><span class="lineno"><a class="line" href="class_s_p_h_1_1_branch.html#aa916034dcbbd9fed90893cf039b22bb4">  160</a></span>&#160;        std::vector&lt;Point&gt; <a class="code" href="class_s_p_h_1_1_branch.html#aa916034dcbbd9fed90893cf039b22bb4">branch_nodes_</a>;   </div><div class="line"><a name="l00161"></a><span class="lineno"><a class="line" href="class_s_p_h_1_1_branch.html#a4decacd1462c03d4ee56245b3225a77e">  161</a></span>&#160;        <span class="keywordtype">bool</span> growing_ = <span class="keyword">true</span>;               </div><div class="line"><a name="l00162"></a><span class="lineno"><a class="line" href="class_s_p_h_1_1_branch.html#a7ee59f1587b77188b80bb2c0a78aebb0">  162</a></span>&#160;        Real <a class="code" href="class_s_p_h_1_1_branch.html#a7ee59f1587b77188b80bb2c0a78aebb0">segment_length_</a>;               </div><div class="line"><a name="l00170"></a><span class="lineno">  170</span>&#160;        Point creatNewBranchNode(Point init_node, Vecd dir);</div><div class="line"><a name="l00171"></a><span class="lineno">  171</span>&#160;    };</div><div class="line"><a name="l00176"></a><span class="lineno"><a class="line" href="class_s_p_h_1_1_network_tree.html">  176</a></span>&#160;    <span class="keyword">class </span><a class="code" href="class_s_p_h_1_1_network_tree.html">NetworkTree</a></div><div class="line"><a name="l00177"></a><span class="lineno">  177</span>&#160;    {</div><div class="line"><a name="l00178"></a><span class="lineno">  178</span>&#160;    <span class="keyword">protected</span>:</div><div class="line"><a name="l00179"></a><span class="lineno">  179</span>&#160;        <a class="code" href="class_s_p_h_1_1_s_p_h_body.html">SPHBody</a>* body_;</div><div class="line"><a name="l00180"></a><span class="lineno">  180</span>&#160;        <a class="code" href="class_s_p_h_1_1_base_level_set.html">BaseLevelSet</a>* levelset_mesh_;;</div><div class="line"><a name="l00181"></a><span class="lineno">  181</span>&#160;        </div><div class="line"><a name="l00182"></a><span class="lineno"><a class="line" href="class_s_p_h_1_1_network_tree.html#a5d7da958714fdda8648819479bab4da4">  182</a></span>&#160;        <span class="keywordtype">int</span> n_it_ = 25;             </div><div class="line"><a name="l00183"></a><span class="lineno"><a class="line" href="class_s_p_h_1_1_network_tree.html#a2d8b0f5acbe2bfd99c29b6cb8df3c493">  183</a></span>&#160;        Real branch_angle_ = 0.15;  </div><div class="line"><a name="l00184"></a><span class="lineno"><a class="line" href="class_s_p_h_1_1_network_tree.html#aaef80906afe7aee7e33c41aae928b7d7">  184</a></span>&#160;        Real branch_w_ = 0.1;       </div><div class="line"><a name="l00185"></a><span class="lineno"><a class="line" href="class_s_p_h_1_1_network_tree.html#a81cec0f27e13b0c7a55745af4206d55d">  185</a></span>&#160;        Real <a class="code" href="class_s_p_h_1_1_network_tree.html#a81cec0f27e13b0c7a55745af4206d55d">length_</a>;               </div><div class="line"><a name="l00186"></a><span class="lineno"><a class="line" href="class_s_p_h_1_1_network_tree.html#a5627221439c36a9a00901971492e986d">  186</a></span>&#160;        Real <a class="code" href="class_s_p_h_1_1_network_tree.html#a5627221439c36a9a00901971492e986d">length_std_</a>;           </div><div class="line"><a name="l00187"></a><span class="lineno"><a class="line" href="class_s_p_h_1_1_network_tree.html#a63ffd36144efdc6566a793e4cf47816b">  187</a></span>&#160;        Real <a class="code" href="class_s_p_h_1_1_network_tree.html#a63ffd36144efdc6566a793e4cf47816b">length_min_</a>;           </div><div class="line"><a name="l00188"></a><span class="lineno"><a class="line" href="class_s_p_h_1_1_network_tree.html#a1c9fce9cf85cebb4dd6414f83ae26874">  188</a></span>&#160;        <span class="keywordtype">bool</span> fascicles_ = <span class="keyword">true</span>;         </div><div class="line"><a name="l00189"></a><span class="lineno"><a class="line" href="class_s_p_h_1_1_network_tree.html#ad206e1e34981df417ef25dd65ee3e8cd">  189</a></span>&#160;        std::vector&lt;Real&gt; fascicle_angles_ = {-1.5, 0.2};   </div><div class="line"><a name="l00190"></a><span class="lineno"><a class="line" href="class_s_p_h_1_1_network_tree.html#a605546cf821fd8dbbc30411965b4cedd">  190</a></span>&#160;        Real fascicle_ratio_ = 20.0;    </div><div class="line"><a name="l00191"></a><span class="lineno">  191</span>&#160;    <span class="keyword">public</span>:</div><div class="line"><a name="l00192"></a><span class="lineno">  192</span>&#160;        <a class="code" href="class_s_p_h_1_1_network_tree.html">NetworkTree</a>(<a class="code" href="class_s_p_h_1_1_s_p_h_body.html">SPHBody</a>* body,      </div><div class="line"><a name="l00193"></a><span class="lineno">  193</span>&#160;                    Point starting_pnt, </div><div class="line"><a name="l00194"></a><span class="lineno">  194</span>&#160;                    Point second_pnt,   </div><div class="line"><a name="l00195"></a><span class="lineno">  195</span>&#160;                    Real init_l,        </div><div class="line"><a name="l00196"></a><span class="lineno">  196</span>&#160;                    Real seg_l          </div><div class="line"><a name="l00197"></a><span class="lineno">  197</span>&#160;                    );</div><div class="line"><a name="l00198"></a><span class="lineno"><a class="line" href="class_s_p_h_1_1_network_tree.html#a6dc3553341fdb09fe95c988af35c560e">  198</a></span>&#160;        <span class="keyword">virtual</span> ~<a class="code" href="class_s_p_h_1_1_network_tree.html">NetworkTree</a>() {};</div><div class="line"><a name="l00199"></a><span class="lineno">  199</span>&#160;        <a class="code" href="class_s_p_h_1_1_node.html">Node</a>* node_;                        </div><div class="line"><a name="l00200"></a><span class="lineno"><a class="line" href="class_s_p_h_1_1_network_tree.html#a6825176c8a63d6a66d75d5b0ff471251">  200</a></span>&#160;        std::vector&lt;Branch*&gt; <a class="code" href="class_s_p_h_1_1_network_tree.html#a6825176c8a63d6a66d75d5b0ff471251">branches_</a>;     </div><div class="line"><a name="l00201"></a><span class="lineno"><a class="line" href="class_s_p_h_1_1_network_tree.html#a0a818aa5f7e2078da5194505aaa88c6a">  201</a></span>&#160;        <span class="keywordtype">int</span> <a class="code" href="class_s_p_h_1_1_network_tree.html#a0a818aa5f7e2078da5194505aaa88c6a">last_branch</a>;                    </div><div class="line"><a name="l00202"></a><span class="lineno"><a class="line" href="class_s_p_h_1_1_network_tree.html#ae199bcabb7464c9b14f90a6bddd7494c">  202</a></span>&#160;        std::vector&lt;int&gt; <a class="code" href="class_s_p_h_1_1_network_tree.html#ae199bcabb7464c9b14f90a6bddd7494c">branch_to_grow_</a>;   </div><div class="line"><a name="l00206"></a><span class="lineno">  206</span>&#160;        <span class="keywordtype">void</span> generateParticlesForSPHBody();</div><div class="line"><a name="l00213"></a><span class="lineno">  213</span>&#160;        <span class="keywordtype">void</span> buildInnerConfigurationgForSPHBody();</div><div class="line"><a name="l00214"></a><span class="lineno">  214</span>&#160;    };</div><div class="line"><a name="l00215"></a><span class="lineno">  215</span>&#160;}</div><div class="ttc" id="class_s_p_h_1_1_network_tree_html"><div class="ttname"><a href="class_s_p_h_1_1_network_tree.html">SPH::NetworkTree</a></div><div class="ttdoc">Class that contains a NetworkTree. </div><div class="ttdef"><b>Definition:</b> network.h:176</div></div>
<div class="ttc" id="class_s_p_h_1_1_branch_html_a7ee59f1587b77188b80bb2c0a78aebb0"><div class="ttname"><a href="class_s_p_h_1_1_branch.html#a7ee59f1587b77188b80bb2c0a78aebb0">SPH::Branch::segment_length_</a></div><div class="ttdeci">Real segment_length_</div><div class="ttdef"><b>Definition:</b> network.h:162</div></div>
<div class="ttc" id="class_s_p_h_1_1_node_html_aa6ee05ea3705bc945c4130229eeea9bc"><div class="ttname"><a href="class_s_p_h_1_1_node.html#aa6ee05ea3705bc945c4130229eeea9bc">SPH::Node::last_node_</a></div><div class="ttdeci">int last_node_</div><div class="ttdef"><b>Definition:</b> network.h:81</div></div>
<div class="ttc" id="namespace_s_p_h_html_abae56fd7f25f13487c7943ce4681d0ce"><div class="ttname"><a href="namespace_s_p_h.html#abae56fd7f25f13487c7943ce4681d0ce">SPH::IndexVector</a></div><div class="ttdeci">StdVec&lt; size_t &gt; IndexVector</div><div class="ttdef"><b>Definition:</b> sph_data_conainers.h:30</div></div>
<div class="ttc" id="class_s_p_h_1_1_node_html_acea90d0decbe568165aa5b885d33e1eb"><div class="ttname"><a href="class_s_p_h_1_1_node.html#acea90d0decbe568165aa5b885d33e1eb">SPH::Node::comparer_</a></div><div class="ttdeci">IntComparer comparer_</div><div class="ttdef"><b>Definition:</b> network.h:86</div></div>
<div class="ttc" id="class_s_p_h_1_1_network_tree_html_ae199bcabb7464c9b14f90a6bddd7494c"><div class="ttname"><a href="class_s_p_h_1_1_network_tree.html#ae199bcabb7464c9b14f90a6bddd7494c">SPH::NetworkTree::branch_to_grow_</a></div><div class="ttdeci">std::vector&lt; int &gt; branch_to_grow_</div><div class="ttdef"><b>Definition:</b> network.h:202</div></div>
<div class="ttc" id="class_s_p_h_1_1_node_html"><div class="ttname"><a href="class_s_p_h_1_1_node.html">SPH::Node</a></div><div class="ttdoc">A class containing the nodes of the branches plus some fuctions to compute distance related quantitie...</div><div class="ttdef"><b>Definition:</b> network.h:70</div></div>
<div class="ttc" id="namespacestd_html"><div class="ttname"><a href="namespacestd.html">std</a></div></div>
<div class="ttc" id="all__meshes_8h_html"><div class="ttname"><a href="all__meshes_8h.html">all_meshes.h</a></div></div>
<div class="ttc" id="class_s_p_h_1_1_branch_html_a79fc50611d5ff8c362184f8410f32455"><div class="ttname"><a href="class_s_p_h_1_1_branch.html#a79fc50611d5ff8c362184f8410f32455">SPH::Branch::parent_branch_</a></div><div class="ttdeci">int parent_branch_</div><div class="ttdef"><b>Definition:</b> network.h:157</div></div>
<div class="ttc" id="class_s_p_h_1_1_branch_html_aa916034dcbbd9fed90893cf039b22bb4"><div class="ttname"><a href="class_s_p_h_1_1_branch.html#aa916034dcbbd9fed90893cf039b22bb4">SPH::Branch::branch_nodes_</a></div><div class="ttdeci">std::vector&lt; Point &gt; branch_nodes_</div><div class="ttdef"><b>Definition:</b> network.h:160</div></div>
<div class="ttc" id="class_s_p_h_1_1_branch_html_a7724eb0c597006ad832eeb9b6263b9a6"><div class="ttname"><a href="class_s_p_h_1_1_branch.html#a7724eb0c597006ad832eeb9b6263b9a6">SPH::Branch::segment_dir_</a></div><div class="ttdeci">Vecd segment_dir_</div><div class="ttdef"><b>Definition:</b> network.h:158</div></div>
<div class="ttc" id="class_s_p_h_1_1_network_tree_html_a6825176c8a63d6a66d75d5b0ff471251"><div class="ttname"><a href="class_s_p_h_1_1_network_tree.html#a6825176c8a63d6a66d75d5b0ff471251">SPH::NetworkTree::branches_</a></div><div class="ttdeci">std::vector&lt; Branch * &gt; branches_</div><div class="ttdef"><b>Definition:</b> network.h:200</div></div>
<div class="ttc" id="sph__data__conainers_8h_html"><div class="ttname"><a href="sph__data__conainers_8h.html">sph_data_conainers.h</a></div><div class="ttdoc">Set up of basic data structure. </div></div>
<div class="ttc" id="class_s_p_h_1_1_branch_html"><div class="ttname"><a href="class_s_p_h_1_1_branch.html">SPH::Branch</a></div><div class="ttdef"><b>Definition:</b> network.h:137</div></div>
<div class="ttc" id="class_s_p_h_1_1_network_tree_html_a5627221439c36a9a00901971492e986d"><div class="ttname"><a href="class_s_p_h_1_1_network_tree.html#a5627221439c36a9a00901971492e986d">SPH::NetworkTree::length_std_</a></div><div class="ttdeci">Real length_std_</div><div class="ttdef"><b>Definition:</b> network.h:186</div></div>
<div class="ttc" id="class_s_p_h_1_1_base_level_set_html"><div class="ttname"><a href="class_s_p_h_1_1_base_level_set.html">SPH::BaseLevelSet</a></div><div class="ttdoc">A abstract describes a mesh with level set data packages. </div><div class="ttdef"><b>Definition:</b> base_mesh.h:493</div></div>
<div class="ttc" id="class_s_p_h_1_1_network_tree_html_a81cec0f27e13b0c7a55745af4206d55d"><div class="ttname"><a href="class_s_p_h_1_1_network_tree.html#a81cec0f27e13b0c7a55745af4206d55d">SPH::NetworkTree::length_</a></div><div class="ttdeci">Real length_</div><div class="ttdef"><b>Definition:</b> network.h:185</div></div>
<div class="ttc" id="class_s_p_h_1_1_network_tree_html_a0a818aa5f7e2078da5194505aaa88c6a"><div class="ttname"><a href="class_s_p_h_1_1_network_tree.html#a0a818aa5f7e2078da5194505aaa88c6a">SPH::NetworkTree::last_branch</a></div><div class="ttdeci">int last_branch</div><div class="ttdef"><b>Definition:</b> network.h:201</div></div>
<div class="ttc" id="class_s_p_h_1_1_k_d_tree_html"><div class="ttname"><a href="class_s_p_h_1_1_k_d_tree.html">SPH::KDTree</a></div><div class="ttdef"><b>Definition:</b> kd_tree.hpp:81</div></div>
<div class="ttc" id="class_s_p_h_1_1_network_tree_html_a63ffd36144efdc6566a793e4cf47816b"><div class="ttname"><a href="class_s_p_h_1_1_network_tree.html#a63ffd36144efdc6566a793e4cf47816b">SPH::NetworkTree::length_min_</a></div><div class="ttdeci">Real length_min_</div><div class="ttdef"><b>Definition:</b> network.h:187</div></div>
<div class="ttc" id="class_s_p_h_1_1_branch_html_ac0952d5bfac3963929adc077dc446c84"><div class="ttname"><a href="class_s_p_h_1_1_branch.html#ac0952d5bfac3963929adc077dc446c84">SPH::Branch::node_idxs_</a></div><div class="ttdeci">std::vector&lt; int &gt; node_idxs_</div><div class="ttdef"><b>Definition:</b> network.h:159</div></div>
<div class="ttc" id="class_s_p_h_1_1_s_p_h_body_html"><div class="ttname"><a href="class_s_p_h_1_1_s_p_h_body.html">SPH::SPHBody</a></div><div class="ttdoc">SPHBody is a base body with basic data and functions. Its derived class can be a real fluid body...</div><div class="ttdef"><b>Definition:</b> base_body.h:73</div></div>
<div class="ttc" id="class_s_p_h_1_1_node_html_ace46ca6baedae3f8df436e5606c20caf"><div class="ttname"><a href="class_s_p_h_1_1_node.html#ace46ca6baedae3f8df436e5606c20caf">SPH::Node::end_nodes_</a></div><div class="ttdeci">IndexVector end_nodes_</div><div class="ttdef"><b>Definition:</b> network.h:82</div></div>
<div class="ttc" id="all__types__of__bodies_8h_html"><div class="ttname"><a href="all__types__of__bodies_8h.html">all_types_of_bodies.h</a></div></div>
<div class="ttc" id="class_s_p_h_1_1_int_comparer_html"><div class="ttname"><a href="class_s_p_h_1_1_int_comparer.html">SPH::IntComparer</a></div><div class="ttdef"><b>Definition:</b> network.h:59</div></div>
<div class="ttc" id="class_s_p_h_1_1_node_html_aa7f2629949b9f07a0954146466ca782b"><div class="ttname"><a href="class_s_p_h_1_1_node.html#aa7f2629949b9f07a0954146466ca782b">SPH::Node::kd_tree_</a></div><div class="ttdeci">KDTree * kd_tree_</div><div class="ttdef"><b>Definition:</b> network.h:83</div></div>
<div class="ttc" id="namespace_s_p_h_html"><div class="ttname"><a href="namespace_s_p_h.html">SPH</a></div><div class="ttdef"><b>Definition:</b> base_body_supplementary.cpp:11</div></div>
<div class="ttc" id="class_s_p_h_1_1_node_html_abe8bf9d8d414f5896e58b1cb52fbdf42"><div class="ttname"><a href="class_s_p_h_1_1_node.html#abe8bf9d8d414f5896e58b1cb52fbdf42">SPH::Node::nodes_idx_</a></div><div class="ttdeci">std::vector&lt; int &gt; nodes_idx_</div><div class="ttdef"><b>Definition:</b> network.h:80</div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.14
</small></address>
</body>
</html>
